package com.baidu.mapapi;

import java.util.ArrayList;

public class MKTransitRouteResult
{
  private MKPlanNode a;
  private MKPlanNode b;
  private ArrayList<MKTransitRoutePlan> c;

  void a(MKPlanNode paramMKPlanNode)
  {
    this.a = paramMKPlanNode;
  }

  void a(ArrayList<MKTransitRoutePlan> paramArrayList)
  {
    this.c = paramArrayList;
  }

  void b(MKPlanNode paramMKPlanNode)
  {
    this.b = paramMKPlanNode;
  }

  public MKPlanNode getEnd()
  {
    return this.b;
  }

  public int getNumPlan()
  {
    int i;
    if (this.c != null)
      i = this.c.size();
    while (true)
    {
      return i;
      i = 0;
    }
  }

  public MKTransitRoutePlan getPlan(int paramInt)
  {
    MKTransitRoutePlan localMKTransitRoutePlan;
    if (this.c != null)
      localMKTransitRoutePlan = (MKTransitRoutePlan)this.c.get(paramInt);
    while (true)
    {
      return localMKTransitRoutePlan;
      localMKTransitRoutePlan = null;
    }
  }

  public MKPlanNode getStart()
  {
    return this.a;
  }
}